package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(Integer roleId);

    //根据id查询权限数据
    public Permission findById(Integer id);

    //根据条件分页查询
    public Page<Permission> selectByCondition(String queryString);

    //新增权限数据
    public void add(Permission permission);

    //编辑权限数据
    public void edit(Permission permission);

    //根据id删除权限数据
    public void deleteById(Integer id);

    //查询所有权限数据
    public List<Permission> findAll();
}
